import page
from base.base import Base
import time


class PageAxaSelectQuotation(Base):
    # 点击交强险按钮
    # 点击商业险按钮
    def page_click_109_radio(self):
        self.base_click(page.axa_109_btn)

    # 点击确认报价
    def page_click_next_set(self):
        js = "document.documentElement.scrollTop=5000"
        self.driver.execute_script(js)
        element = self.base_find(page.axa_next_setp)
        self.driver.execute_script("arguments[0].click();", element)

    # 点击不 购买 商业险
    def page_click_cancel(self):
        self.base_click(page.axa_cancelPurchase)

    # 获取同意文本
    def page_get_text(self):
        return self.base_get_text(page.axa_agree)

    # 组合选择报价业务
    def page_axa_select_quotation(self):
        # self.page_click_109_radio()
        self.page_click_next_set()
        # self.page_click_cancel()
